var elixir = require('laravel-elixir');

/*
 |--------------------------------------------------------------------------
 | Elixir Asset Management
 |--------------------------------------------------------------------------
 |
 | Elixir provides a clean, fluent API for defining some basic Gulp tasks
 | for your Laravel application. By default, we are compiling the Sass
 | file for our application, as well as publishing vendor resources.
 |
 */

elixir(function (mix) {
    mix.styles([
        'node_modules/startbootstrap-sb-admin-2/bower_components/bootstrap/dist/css/bootstrap.min.css',
        'node_modules/startbootstrap-sb-admin-2/bower_components/metisMenu/dist/metisMenu.min.css',
        'node_modules/startbootstrap-sb-admin-2/dist/css/sb-admin-2.css',
        'node_modules/startbootstrap-sb-admin-2/bower_components/font-awesome/css/font-awesome.min.css',
        'node_modules/jquery-treegrid/css/jquery.treegrid.css',
        'resources/assets/css/admin.css'
    ], 'public/css/administrator.css', './')
        .scripts([
            'node_modules/startbootstrap-sb-admin-2/bower_components/jquery/dist/jquery.min.js',
            'node_modules/startbootstrap-sb-admin-2/bower_components/bootstrap/dist/js/bootstrap.min.js',
            'node_modules/startbootstrap-sb-admin-2/bower_components/metisMenu/dist/metisMenu.min.js',
            'node_modules/startbootstrap-sb-admin-2/dist/js/sb-admin-2.js',
            'node_modules/jquery-treegrid/js/jquery.treegrid.min.js',
            'node_modules/jquery-treegrid/js/jquery.treegrid.bootstrap3.js'
        ], 'public/js/administrator.js', './')
        .copy([
            'node_modules/startbootstrap-sb-admin-2/bower_components/font-awesome/fonts',
            'node_modules/startbootstrap-sb-admin-2/bower_components/bootstrap/fonts'
        ], 'public/fonts','./')
        .copy('node_modules/jquery-treegrid/img','public/img','./');
});
